import request from "@/utils/request.js"

export const getUserPage = (data) => {
  return request.post("/user/page", data)
}

export const addUser = (data) => {
  return request.post("/user", data)
}

export const setUserStatus = (id, status) => {
  return request.post("/user/status/" + status + "/" + id)
}

export const getUserInfoById = (id) => {
  return request.get("/user/" + id)
}

export const editUser = (data) => {
  return request.put("/user", data)
}
